package com.deprecated.patch;

/**
 * Field default value.
 *
 * @author Karl Dinwiddie
 */
public class FieldDefault {

    /**
     * Value.
     */
    private String val;

    /**
     * @return Value.
     */
    public String getValue() {
        if (val == null) {
            val = load();
        }
        return val;
    }

    /**
     * @param value Value.
     */
    public void setValue(final String value) {
        val = value;
    }

    /**
     * @return Loaded value, defaults to empty String.
     */
    protected String load() {
        return "";
    }

}
